package com.nuanshui.heatedloan.credit.mongodb;

import com.nuanshui.heatedloan.constant.ServiceConstant;
import com.nuanshui.heatedloan.credit.facade.AllinPayRecordService;
import com.nuanshui.heatedloan.credit.model.record.AllinPayBillRecord;
import com.nuanshui.heatedloan.credit.model.record.AllinPayReqRecord;
import com.nuanshui.heatedloan.credit.pay.AllinPayResultNotify;
import com.nuanshui.heatedloan.pageable.Pager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(ServiceConstant.ALLINPAYRECORDSERVICE)
public class AllinPayRecordServiceImpl implements AllinPayRecordService {

    @Autowired
    private AllinPayBillRecordService allinPayBillRecordService;

    @Autowired
    private AllinPayReqRecordService allinPayReqRecordService;

    @Autowired
    private AllinPayResultNotifyService allinPayResultNotifyService;

    public Pager<AllinPayBillRecord> findBillListByPage(Pager<AllinPayBillRecord> pager,AllinPayBillRecord query)
    {
        Pager<AllinPayBillRecord> list=allinPayBillRecordService.findAllListByPage(pager,query);
        return list;
    }

    public Pager<AllinPayReqRecord> findReqListByPage(Pager<AllinPayReqRecord> pager, AllinPayReqRecord query)
    {
        Pager<AllinPayReqRecord> list=allinPayReqRecordService.findAllListByPage(pager,query);
        return list;
    }

    public Pager<AllinPayResultNotify> findResultNotifyListByPage(Pager<AllinPayResultNotify> pager, AllinPayResultNotify query)
    {
        Pager<AllinPayResultNotify> list=allinPayResultNotifyService.findAllListByPage(pager,query);
        return list;
    }
}
